import { request, requestSync } from '@/utils/request'

export const companyLogoList = () => {
  return requestSync({
    url: '/system/logo/listCompanyLogoDataVO',
    method: 'post',
  })
}

export const logoList = () => {
  return requestSync({
    url: '/system/logo/list',
    method: 'post',
  })
}

export const logoAdd = data => {
  return requestSync({
    url: '/system/logo/add',
    method: 'post',
    data
  })
}

export const logoInfo = logoId => {
  return requestSync({
    url: '/system/logo/info',
    method: 'post',
    params:{
      logoId:logoId
    }
  })
}

export const logoDelete = logoId => {
  return requestSync({
    url: '/system/logo/delete',
    method: 'post',
    params:{
      logoId:logoId
    }
  })
}

export const logoUpdate = data => {
  return requestSync({
    url: '/system/logo/update',
    method: 'post',
    data
  })
}

export const logoUpdateState = data => {
  return requestSync({
    url: '/system/logo/updateState',
    method: 'post',
    data
  })
}
